import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/gate_region_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/gate_region_entity.g.dart';

/// 区域实体类
@JsonSerializable()
class GateRegionEntity {
  GateRegionEntity();

  factory GateRegionEntity.fromJson(Map<String, dynamic> json) => $GateRegionEntityFromJson(json);
  late String allRegionIds = '';
  late String companyCode = '';
  late String createBy = '';
  late String createById = '';
  late String createDate = '';
  late String deleted = '';
  late List<dynamic> hazardFacilities = [];
  late String id = '';
  late List<dynamic> majorHazardInformations = [];
  late int maximumCapacity = 0;
  late String regionName = '';
  late int regionalLevel = 0;
  late String remark = '';
  late String updateBy = '';
  late String updateById = '';
  late String updateDate = '';
  late int numberOfAppointments = 0;

  Map<String, dynamic> toJson() => $GateRegionEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
